<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tag/c.tld"%>
<div id="divPageConfigType">
<form action="${webRoot}/pageConfig/type/save" method="post">
	<input type="hidden" name="code" value="${project.projectCode }"/>
	<div class="form-group">
    	<label>页面模版类型</label>
    	<input type="text" class="form-control" name="templateType" value="simple"/>
  	</div>
  	<div class="form-group clearfix">
	    <button type="button" class="btn btn-success pull-right">确定</button>
  	</div>
</form>
<script type="text/javascript">
$(function(){
	$('#divPageConfigType .btn-success').click(function(){
		$('#divPageConfigType form').jfForm('submit',function(result){
			if(result.error==1){
				jf.request('${webRoot}/pageConfig?code=${project.projectCode}');
			}else{jf.error(result.msg);}
		});
	});
});
</script>
</div>